﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Excell_On_Services.ViewModels.ClientsDisplayModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="mc_title">Managerment Company</p>
    <div class="content-box"><!-- Start Content Box -->
        <div class="content-box-header">
			<form action="">
				Enter to Search : &nbsp;&nbsp;<input type="text" name="employ"/>
				&nbsp;&nbsp;By :&nbsp;&nbsp;<input type="text" name="employ"/>
                <%
                    IEnumerable<SelectListItem> types = new[] {
                    new SelectListItem() { Value = "1", Text = "Company Name" },
                    new SelectListItem() { Value = "2", Text = "Client ID" },
                    new SelectListItem() { Value = "3", Text = "Phone" },
                    new SelectListItem() { Value = "4", Text = "Email" },
                    new SelectListItem() { Value = "5", Text = "Locked" },
                    }; %>
                <%: Html.DropDownList("ddlSearch", types, "-  Select to Search  -")%>
				<input type="submit" value="Tìm kiếm" class="cbh_button" />
                <%--<%: Html.ActionLink("Search", "Search", new { type = .Get("searchGenreId") })%>--%>
			</form>
		</div>

        <div class="content-box-content">
			   
			<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
					
				<div class="notification attention png_bg">
					<a href="#" class="close"><img src="../../Content/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
					<div class="warning_text">
						This is a Content Box. You can put whatever you want in it. By the way, you can close this notification with the top-right cross.
					</div>
				</div>

                <table width="100%">
							
				    <thead style="color:#333333;">
					    <tr>
						    <th><input class="check-all" type="checkbox" /></th>
                            <th>Username </th>
						    <th>Company Name</th>
						    <th>Address</th>
						    <th>Phone</th>
						    <th>Email</th>
						    <th>Note</th>
					    </tr>
								
				    </thead>

                    <tfoot>
						<tr>
							<td colspan="6">
								<%--<div class="bulk-actions align-left">
									<select name="dropdown">
										<option value="option1">Choose an action...</option>
										<option value="option2">Edit</option>
										<option value="option3">Delete</option>
									</select>
									<a class="button" href="#">Apply to selected</a>
								</div>--%>
										
								<div class="pagination">
									<% Html.RenderPartial("Pager", Model.PagerModel); %>
								</div> <!-- End .pagination -->
								<div class="clear"></div>
							</td>
						</tr>
					</tfoot>

                    <tbody>
                        <% foreach (var item in Model.Clients) { %>
						<tr>
							<td><input type="checkbox" /></td>
                            <td><%: item.aspnet_Users.UserName %></td>
							<td><%: item.CompanyName %></td>
							<td> <%: item.Address %></td>
							<td> <%: item.Phone %></td>
							<td> <%:Membership.GetUser(item.aspnet_Users.UserName).Email%></td>
                            <td>&nbsp;</td>

							<td align="right" style="text-align: right; width: 100px;">
                                <a href="<%: Url.Action("Edit", new { id = item.ClientID}) %>" title="Edit" >
                                <img src="../../Content/images/icons/pencil.png" alt="Edit" />
                                </a>
                                <a href="<%: Url.Action("Delete", new { id = item.ClientID}) %>" title="Delete" >
                                   <img src="../../Content/images/icons/cross.png" alt="Delete" />
                                </a>	
							    <a href="<%: Url.Action("Details", new { id = item.ClientID}) %>" title="Details" >
                                   <img src="../../Content/images/icons/hammer_screwdriver.png" alt="Details" />
                                </a>
                            </td>
						</tr>
                        <% } %>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <% Html.RenderPartial("Pager", Model.PagerModel); %>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>
